package com.sen.organization.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.sen.common.common.bo.PeopleInfo;
import com.sen.common.common.response.PageVo;
import com.sen.organization.dto.MemberPeopleDTO;
import com.sen.organization.dto.MemberPeopleSearchDTO;
import com.sen.organization.model.MemberPeople;
import com.sen.organization.vo.MemberPeopleListVO;
import com.sen.organization.vo.MemberPeopleVO;

/**
 * @author esjiang
 */
public interface PeopleService extends IService<MemberPeople> {

    /**
     * 搜索
     * @param memberPeopleSearchDTO
     * @return
     */
    PageVo<MemberPeopleListVO> list(MemberPeopleSearchDTO memberPeopleSearchDTO) ;
    /**
     * 新增人员信息
     * @param memberPeopleDTO
     * @return
     */
    void add(MemberPeopleDTO memberPeopleDTO);

    /**
     * 更新人员信息
     * @param memberPeopleDTO
     * @return
     */
    void upd(MemberPeopleDTO memberPeopleDTO) ;

    /**
     * 删除人员信息
     * @param id
     * @return
     */
    void del(long id) ;

    /**
     * 查询人员信息
     * @param id
     * @return
     */
    MemberPeopleVO getMemberPeople(long id) ;

    /**
     * 账户登录获取人员信息
     * @param userName 账户名
     * @return
     */
    PeopleInfo getPeopleInfo(String userName) ;

}
